<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@include file="../../common/includeBaseSet.jsp" %>
<%@include file="../../common/includeSystemSet.jsp" %>
<%@include file="../../common/operation_forbid.jsp" %>
<%@include file="../../common/jsVersion.jsp" %>
<!DOCTYPE html >
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>财务复核</title>
    
</head>
<body>
	 <link rel="stylesheet" type="text/css"  href="${jypath}/static/ext/resources/ext-theme-gray/ext-theme-gray-all.css" />
     <script type="text/javascript" src="${jypath}/static/ext/ext-all.js"></script>
	 <script type="text/javascript" src="${jypath}/static/ext/locale/ext-lang-zh_CN.js"></script>
	 <script type="text/javascript" src="${jypath}/static/js/marketing/haveReceiveRefund/re_checked.js?v=${jsVersion}"></script>
	 <script type="text/javascript" src="${jypath}/static/js/marketing/haveReceiveRefund/re_checked_false.js?v=${jsVersion}"></script>
	 <script type="text/javascript" src="${jypath}/static/js/marketing/haveReceiveRefund/re_checked_true.js?v=${jsVersion}"></script>
	   <script type="text/javascript" src="${jypath}/static/js/jquery/json2.js"></script> 
	 <script type="text/javascript">
	 
	 var idata = '${permitBtn}';
	 var payDepositOff='${payDepositOff}';
	  	if(idata!=null||idata!=""){
			idata=JSON.parse(idata);
		}
	  	var finNeedReceiveCheck = true ;
	  	var finNeedReceiveCancelCheck= true ;
	  	if(Ext.Array.contains(idata,"fin:needReceive:check")){
	  		finNeedReceiveCheck=false;
		}
	  	if(Ext.Array.contains(idata,"fin:needReceive:cancelCheck")){
	  		finNeedReceiveCancelCheck=false;
		}
	
	    //房号list
	    var roomList = new Ext.data.Store({
	        singleton:true,
	        autoDestroy:true,
	        fields: ["combinedName", "id"],
	        proxy:{
	            type:'ajax',
	            url:jypath+'/marketing/haveReceiveRefund/findRoomId',
	            reader:{
                    type: 'json', 
                    root: 'root'  //数据
               }
	        },
	        autoLoad:true
        });
	    
	    
	    //员工list
	    var billUser = new Ext.data.Store({
	        singleton:true,
	        autoDestroy:true,
	        fields: ["userName", "id"],
	        proxy:{
	            type:'ajax',
	            url:jypath+'/marketing/haveReceiveRefund/findUserByMerID',
	            reader:{
                    type: 'json', 
                    root: 'root'  //数据
               }
	        },
	        autoLoad:true
        });
	    
	    //结算方式
	    var statementTypeEnum = new Ext.data.Store({
	        singleton:true,
	        autoDestroy:true,
	        fields: ["value", "id"],
	        proxy:{
	            type:'ajax',
	            url:jypath+'/marketing/haveReceiveRefund/statementTypeEnum',
	            reader:{
                    type: 'json', 
                    root: 'root'  //数据
               }
	        },
	        autoLoad:true
        });
	    //银行账号
	    var getBankAccount = new Ext.data.Store({
	        singleton:true,
	        autoDestroy:true,
	        fields: ["dictionaryName"],
	        proxy:{
	            type:'ajax',
	            url:jypath+'/estate/dictionary/getDictionary?dictionaryType=BA',
	            reader:{
	                type: 'json', 
	                root: 'root'  //数据
	           }
	        },
	        autoLoad:true
	    });
	    

	    //业务标志
	    var businessFlagEnum = new Ext.data.Store({
	        singleton:true,
	        autoDestroy:true,
	        fields: ["value", "id"],
	        proxy:{
	            type:'ajax',
	            url:jypath+'/marketing/haveReceiveRefund/businessFlagEnum',
	            reader:{
                    type: 'json', 
                    root: 'root'  //数据
               }
	        },
	        autoLoad:true
        });
	 Ext.onReady(function() {
		
		    
		 
		 var re_checked=Ext.create('component.marketing.re_checked');
		 var re_checked_false=Ext.create('component.marketing.re_checked_false');
		 var re_checked_true=Ext.create('component.marketing.re_checked_true');
		 
		 
		 
		 var tabs2 = Ext.widget('tabpanel', {
		        renderTo: document.body,
		        layout : 'fit',
		        activeTab: 0,
		        plain: true,
		        defaults :{
		            autoScroll: true,
		            bodyPadding: 10
		        },
		        items: [{
	                title: '待复核',
	                items: re_checked
	            },{
	                title: '复核通过',
	                items: re_checked_true
	            },{
	                title: '复核未通过',
	                items: re_checked_false
	            }
		        ], 
                listeners:{ 
                    tabchange:function(tp,p){ 
                        
                    } 
                }
		    });
		 
	 })
	 
	 </script>
</body>
</html>